package com.yanqu.road.server.cmd.activity.zhenhuan.second;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.logic.pb.PlayerBasePb;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ZhenHuanProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.ActivityMgr;
import com.yanqu.road.server.manager.activity.zhenhuan.CrossZhenHuanMgr;
import com.yanqu.road.server.manager.activity.zhenhuan.CrossZhenHuanSecondActivity;
import com.yanqu.road.server.manager.user.CrossUserMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_CROSS_ZHENHUAN_FIRST_PROCESS_PROMOTION_ACTIVITY, desc = "激活一下,一阶段的晋升逻辑")
public class CrossZhenHuanFirstProcessPromotionActivityCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        ZhenHuanProto.ZhenHuanSecondProcessGetNewKickRecordReqMsg reqMsg = ZhenHuanProto.ZhenHuanSecondProcessGetNewKickRecordReqMsg.parseFrom(packet.getBytes());
        ActivityInfo activityInfo = ActivityMgr.getActivityInfoMayLoadDB(reqMsg.getActivityId());
        if (activityInfo != null) {
            CrossZhenHuanMgr.getPromotionActivity(activityInfo);
        }

    }

    @Override
    public void sendData() {

    }
}
